package com.platform.hjt.sys.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.platform.hjt.base.controller.BaseController;
import com.platform.hjt.sys.model.SysModel;
import com.platform.hjt.sys.service.SysModelService;

@Controller
@RequestMapping(value="/sysModel")
public class SysModelController extends BaseController{

	@Resource
	private SysModelService sysModelService;
	
	@RequestMapping(value="/sysModel_list_all.do")
	@ResponseBody
	public List<SysModel> sysModelListAllDo(){
		return sysModelService.getSysModelAll();
	}
	
	@RequestMapping(value="/sys_company_model_list_all.do")
	@ResponseBody
	public List<SysModel> sysCompanyModel(){
		return sysModelService.getCompanyModel(getSessionSysCompanyInfo().getSysCompanyInfoId());
	}
	
	@RequestMapping(value="/sys_user_model_list.do")
	@ResponseBody
	public List<SysModel> sysUserModelList(){
		return sysModelService.getUserModel(getSessionUser().getSysUserInfoId());
	}
	
}
